package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 优惠卷管理对象 d_voucher
 *
 * @author tjm
 * @date 2025-04-03
 */
public class DVoucher extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 优惠卷ID */
    private Long vid;

    /** 优惠卷名称 */
    @Excel(name = "优惠卷名称")
    private String vname;

    /** 优惠券类型 */
    @Excel(name = "优惠券类型")
    private Integer couponType;

    public String getCouponTypeName() {
        return couponTypeName;
    }

    public void setCouponTypeName(String couponTypeName) {
        this.couponTypeName = couponTypeName;
    }

    private String couponTypeName;

    /** 面值 */
    @Excel(name = "面值")
    private Long price;

    /** 使用条件 */
    @Excel(name = "使用条件")
    private String usingConditions;

    /** 有效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date useTime;

    /** 数量 */
    @Excel(name = "数量")
    private Long number;

    /** 发布状态(0代表未过期，1代表已过期) */
    @Excel(name = "发布状态(0代表未过期，1代表已过期)")
    private Long publicationStatus;

    /** 生效状态(0代表未生效，1代表已生效) */
    @Excel(name = "生效状态(0代表未生效，1代表已生效)")
    private Long effectiveStatus;

    public void setVid(Long vid)
    {
        this.vid = vid;
    }

    public Long getVid()
    {
        return vid;
    }
    public void setVname(String vname)
    {
        this.vname = vname;
    }

    public String getVname()
    {
        return vname;
    }
    public void setCouponType(Integer couponType)
    {
        this.couponType = couponType;
    }

    public Integer getCouponType()
    {
        return couponType;
    }
    public void setPrice(Long price)
    {
        this.price = price;
    }

    public Long getPrice()
    {
        return price;
    }
    public void setUsingConditions(String usingConditions)
    {
        this.usingConditions = usingConditions;
    }

    public String getUsingConditions()
    {
        return usingConditions;
    }
    public void setUseTime(Date useTime)
    {
        this.useTime = useTime;
    }

    public Date getUseTime()
    {
        return useTime;
    }
    public void setNumber(Long number)
    {
        this.number = number;
    }

    public Long getNumber()
    {
        return number;
    }
    public void setPublicationStatus(Long publicationStatus)
    {
        this.publicationStatus = publicationStatus;
    }

    public Long getPublicationStatus()
    {
        return publicationStatus;
    }
    public void setEffectiveStatus(Long effectiveStatus)
    {
        this.effectiveStatus = effectiveStatus;
    }

    public Long getEffectiveStatus()
    {
        return effectiveStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("vid", getVid())
            .append("vname", getVname())
            .append("couponType", getCouponType())
            .append("price", getPrice())
            .append("usingConditions", getUsingConditions())
            .append("useTime", getUseTime())
            .append("number", getNumber())
            .append("publicationStatus", getPublicationStatus())
            .append("effectiveStatus", getEffectiveStatus())
            .append("createBy", getCreateBy())
            .append("remark", getRemark())
            .toString();
    }
}
